using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace SceneryEditor
{
    public partial class FrmSceneryEditor : Form
    {
        private static Form myself = null;      // It is used to manage when two forms of the same type are opened. Sometimes we ony want one single form
        public bool closed = false;             // It is used when the form is closed and not disposed (yet)

        public event System.EventHandler OnExit;            // Event to handle when this form request to close the application

        public FrmSceneryEditor()
        {
            InitializeComponent();

            Initialize();
        }

        private void Initialize()
        {
            dx3dViewer1.InitDevice();
        }

        #region "Dispose"
        public void This_Close(object sender, FormClosedEventArgs e)
        {
            closed = true;
        }

        private void This_Dispose(object sender, EventArgs e)
        {
            closed = true;
        }
        #endregion
    }
}